import logging as log


def init_log(log_path):
    log.basicConfig(filename=log_path, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
                    level=log.DEBUG)
    globalVal.global_dict['log'] = log


class globalVal:
    global_dict = {}
